package com.healthcloud.entity;

import java.io.Serializable;
import java.util.Date;

import com.healthcloud.query.CriteriaCondition;
import com.healthcloud.query.RelationalOp;
import com.healthcloud.search.Criteria;

/**
 * 用于病人信息的查询条件
 * Created by xiam on 2015/6/23.
 */
public class PatientCriteria implements Criteria, Serializable {

	@CriteriaCondition(relationalOp = RelationalOp.LIKE,name="a.idCard")
	private String idCard; // 身份证号码
	@CriteriaCondition(relationalOp = RelationalOp.EQ,name="a.gender")
	private Integer gender; // 性别
	@CriteriaCondition(relationalOp = RelationalOp.LIKE,name="a.realname" )
	private String realname; // 姓名
	
	@CriteriaCondition(relationalOp = RelationalOp.NOT_LT, name = "a.birthday")
	private Date birthFrom; 
	@CriteriaCondition(relationalOp = RelationalOp.NOT_GT, name = "a.birthday")
	private Date birthTo;
	
	@CriteriaCondition(relationalOp = RelationalOp.EQ,name="b.doctorId")
	private Long doctorId; //左联关系表的医生编号
	@CriteriaCondition(relationalOp = RelationalOp.EQ,name="b.hospitalId")
	private Long hospitalId;//左联关系表的医院编号
	
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public Date getBirthFrom() {
		return birthFrom;
	}
	public void setBirthFrom(Date birthFrom) {
		this.birthFrom = birthFrom;
	}
	public Date getBirthTo() {
		return birthTo;
	}
	public void setBirthTo(Date birthTo) {
		this.birthTo = birthTo;
	}
	public Long getDoctorId() {
		return doctorId;
	}
	public void setDoctorId(Long doctorId) {
		this.doctorId = doctorId;
	}
	public Long getHospitalId() {
		return hospitalId;
	}
	public void setHospitalId(Long hospitalId) {
		this.hospitalId = hospitalId;
	}
}
